home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / CIncludes / ConnectionTools.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-11  |  3.7 KB  |  164 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        ConnectionTools.h
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. */
  16.  
  17. #ifndef __CONNECTIONTOOLS__
  18. #define __CONNECTIONTOOLS__
  19.  
  20.  
  21. #ifndef __WINDOWS__
  22. #include <Windows.h>
  23. #endif
  24. /*    #include <Memory.h>                                            */
  25. /*        #include <Types.h>                                        */
  26. /*            #include <ConditionalMacros.h>                        */
  27. /*        #include <MixedMode.h>                                    */
  28. /*    #include <Quickdraw.h>                                        */
  29. /*        #include <QuickdrawText.h>                                */
  30. /*    #include <Events.h>                                            */
  31. /*        #include <OSUtils.h>                                    */
  32. /*    #include <Controls.h>                                        */
  33. /*        #include <Menus.h>                                        */
  34.  
  35. #ifndef __DIALOGS__
  36. #include <Dialogs.h>
  37. #endif
  38. /*    #include <Errors.h>                                            */
  39. /*    #include <TextEdit.h>                                        */
  40.  
  41. #ifndef __CONNECTIONS__
  42. #include <Connections.h>
  43. #endif
  44. /*    #include <CTBUtilities.h>                                    */
  45. /*        #include <StandardFile.h>                                */
  46. /*            #include <Files.h>                                    */
  47. /*        #include <AppleTalk.h>                                    */
  48.  
  49. #ifdef __cplusplus
  50. extern "C" {
  51. #endif
  52.  
  53. #if GENERATINGPOWERPC
  54. #pragma options align=mac68k
  55. #endif
  56.  
  57. #ifdef __CFM68K__
  58. #pragma lib_export on
  59. #endif
  60.  
  61.  
  62. enum {
  63. /* messages for DefProc */
  64.     cmInitMsg                    = 0,
  65.     cmDisposeMsg                = 1,
  66.     cmSuspendMsg                = 2,
  67.     cmResumeMsg                    = 3,
  68.     cmMenuMsg                    = 4,
  69.     cmEventMsg                    = 5,
  70.     cmActivateMsg                = 6,
  71.     cmDeactivateMsg                = 7,
  72.     cmIdleMsg                    = 50,
  73.     cmResetMsg                    = 51,
  74.     cmAbortMsg                    = 52,
  75.     cmReadMsg                    = 100,
  76.     cmWriteMsg                    = 101,
  77.     cmStatusMsg                    = 102,
  78.     cmListenMsg                    = 103,
  79.     cmAcceptMsg                    = 104,
  80.     cmCloseMsg                    = 105,
  81.     cmOpenMsg                    = 106,
  82.     cmBreakMsg                    = 107,
  83.     cmIOKillMsg                    = 108,
  84.     cmEnvironsMsg                = 109,
  85. /* new connection tool messages for ctb 1.1 */
  86.     cmNewIOPBMsg                = 110,
  87.     cmDisposeIOPBMsg            = 111,
  88.     cmGetErrorStringMsg            = 112,
  89.     cmPBReadMsg                    = 113,
  90.     cmPBWriteMsg                = 114,
  91.     cmPBIOKillMsg                = 115,
  92. /*    messages for validate DefProc    */
  93.     cmValidateMsg                = 0,
  94.     cmDefaultMsg                = 1,
  95. /*    messages for Setup DefProc    */
  96.     cmSpreflightMsg                = 0,
  97.     cmSsetupMsg                    = 1,
  98.     cmSitemMsg                    = 2,
  99.     cmSfilterMsg                = 3,
  100.     cmScleanupMsg                = 4,
  101. /*    messages for scripting defProc    */
  102.     cmMgetMsg                    = 0,
  103.     cmMsetMsg                    = 1,
  104. /*    messages for localization defProc    */
  105.     cmL2English                    = 0,
  106.     cmL2Intl                    = 1
  107. };
  108.  
  109. enum {
  110. /* private data constants */
  111.     cdefType                    = 'cdef',                        /* main connection definition procedure */
  112.     cvalType                    = 'cval',                        /* validation definition procedure */
  113.     csetType                    = 'cset',                        /* connection setup definition procedure */
  114.     clocType                    = 'cloc',                        /* connection configuration localization defProc */
  115.     cscrType                    = 'cscr',                        /* connection scripting defProc interfaces */
  116.     cbndType                    = 'cbnd',                        /* bundle type for connection */
  117.     cverType                    = 'vers'
  118. };
  119.  
  120. struct CMDataBuffer {
  121.     Ptr                                thePtr;
  122.     long                            count;
  123.     CMChannel                        channel;
  124.     CMFlags                            flags;
  125. };
  126. typedef struct CMDataBuffer CMDataBuffer;
  127.  
  128. typedef CMDataBuffer *CMDataBufferPtr;
  129.  
  130. struct CMCompletorRecord {
  131.     Boolean                            async;
  132.     SInt8                            filler;
  133.     ConnectionCompletionUPP            completionRoutine;
  134. };
  135. typedef struct CMCompletorRecord CMCompletorRecord;
  136.  
  137. typedef CMCompletorRecord *CMCompletorPtr;
  138.  
  139. /*    Private Data Structure    */
  140. struct CMSetupStruct {
  141.     DialogPtr                        theDialog;
  142.     short                            count;
  143.     Ptr                                theConfig;
  144.     short                            procID;                        /* procID of the tool    */
  145. };
  146. typedef struct CMSetupStruct CMSetupStruct;
  147.  
  148. typedef CMSetupStruct *CMSetupPtr;
  149.  
  150.  
  151. #ifdef __CFM68K__
  152. #pragma lib_export off
  153. #endif
  154.  
  155. #if GENERATINGPOWERPC
  156. #pragma options align=reset
  157. #endif
  158.  
  159. #ifdef __cplusplus
  160. }
  161. #endif
  162.  
  163. #endif /* __CONNECTIONTOOLS__ */
  164.